import request from '@/utils/request'

// 查询支部积分列表
export function listPartscore(query) {
  return request({
    url: '/partscore/partscore/list',
    method: 'get',
    params: query
  })
}

// 查询支部积分详细
export function getPartscore(id) {
  return request({
    url: '/partscore/partscore/' + id,
    method: 'get'
  })
}

// 新增支部积分
export function addPartscore(data) {
  return request({
    url: '/partscore/partscore',
    method: 'post',
    data: data
  })
}

// 修改支部积分
export function updatePartscore(data) {
  return request({
    url: '/partscore/partscore',
    method: 'put',
    data: data
  })
}

// 删除支部积分
export function delPartscore(id) {
  return request({
    url: '/partscore/partscore/' + id,
    method: 'delete'
  })
}
